//
//  AppVersionModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/9/21.
//

import UIKit
import ObjectMapper

class AppVersionModel: Mappable {
    var code: String?
    var msg: String?
    var data: AppVersionDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}


class AppVersionDataModel: Mappable {
    var id: NSInteger?
    var status: NSInteger?//状态：1.可用，0.不可用
    var upgrade: String?//是否强制升级：1.是，0.否
    var type: NSInteger?//类型：1.android,2.ios
    var appVersion: String?//app版本
    var createdTime: String?
    var online: NSInteger?//是否上线
    var note: String?//描述(移动端使用这个固定字段，用来针对语言切换)
    
    func mapping(map: Map) {
        id <- map["id"]
        status <- map["status"]
        upgrade <- map["upgrade"]
        type <- map["type"]
        appVersion <- map["appVersion"]
        createdTime <- map["createdTime"]
        online <- map["online"]
        note <- map["note"]
    }
    required init?(map: Map) {
        
    }
}
